package com.sdry.good.logistics.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sdry.good.logistics.entity.ReportDeficiencyOrder;
import com.sdry.good.logistics.service.ReportDeficiencyOrderService;
import com.sdry.good.logistics.mapper.ReportDeficiencyOrderMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
 *
 *@ClassName: ReportDeficiencyOrderService
 *@Description: 报缺明细单表
 *@Author tdd
 *@Date 2020-03-30 16:52:49
 *@version 1.0
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class ReportDeficiencyOrderServiceImpl implements ReportDeficiencyOrderService {
	@Resource ReportDeficiencyOrderMapper reportDeficiencyOrderMapper;
	//声明一个Logger
	private final static Logger logger = LoggerFactory.getLogger(ReportDeficiencyOrderServiceImpl.class);
	/** 
	 * 根据主键id查询实体
	 * @param id 主键id
	 * @return 实体
	*/
	public ReportDeficiencyOrder queryById(Long id) {
		return reportDeficiencyOrderMapper.queryById(id);
	}
	/** 
	 * 条件查询所有
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<ReportDeficiencyOrder> queryAllByMution(ReportDeficiencyOrder param) {
		return reportDeficiencyOrderMapper.queryAllByMution(param);
	}
	/** 
	 * 条件分页查询
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public List<ReportDeficiencyOrder> findPageByMution(ReportDeficiencyOrder param) {
		return reportDeficiencyOrderMapper.findPageByMution(param);
	}
	/** 
	 * 条件查询记录数
	 * @param param 实体条件
	 * @return 实体集合
	*/
	public Integer selectCountByMution(ReportDeficiencyOrder param) {
		return reportDeficiencyOrderMapper.selectCountByMution(param);
	}
	/** 
	 * 插入返回id
	 * @param param 实体条件
	 * @return 主键id
	*/
	public Long insert(ReportDeficiencyOrder param) {
		return reportDeficiencyOrderMapper.insert(param);
	}
	/** 
	 * 根据主键更新 返回影响行数
	 * @param param 实体条件
	 * @return 影响行数
	*/
	public Integer update(ReportDeficiencyOrder param) {
		return reportDeficiencyOrderMapper.update(param);
	}
	/** 
	 * 根据主键拼接的字符串删除返回影响行数
	 * @param ids 主键拼接的字符串
	 * @return 影响行数
	*/
	public Integer delete(String ids) {
		return reportDeficiencyOrderMapper.delete(ids);
	}
}
